<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/

Route::get('/', function(){
		 return View::make('layouts.master');
});

Route::get('/tradesman-signup', function(){
    return View::make('tradesman-signup');
});

Route::get('register',  ['uses' => 'RegisterController@index', 'as' => 'register.index']);
Route::post('register', ['uses' => 'RegisterController@store', 'as' => 'register.store']);

Route::get('login',     ['uses' => 'LoginController@index', 'as' => 'login.create']);
Route::get('profile',   ['uses' => 'LoginController@getUserProfile', 'as' => 'login.profile']);
Route::post('login',    ['uses' => 'LoginController@store',  'as' => 'login.store']);
Route::delete('logout', ['uses' => 'LoginController@destroy','as' => 'login.destroy']);





